package com.d3works.apps.account.service.invoice.factory;

import com.d3works.apps.account.db.Invoice;
import com.d3works.apps.account.service.invoice.workflow.validate.ValidateState;
import com.d3works.inject.Beans;

// import com.d3works.apps.base.service.alarm.AlarmEngineService;

public class ValidateFactory {

  //	@Inject
  //	private AlarmEngineService<Invoice> alarmEngineService;

  public ValidateState getValidator(Invoice invoice) {
    ValidateState validateState = Beans.get(ValidateState.class);
    validateState.init(invoice);
    return validateState;
  }
}
